package chatGUI;

import model.User;

/**
 * @author Michael & Pierre
 */
/**
 * Interface gathering all messages that can be sent to the user
 */
public interface ToUser {

	/**
	 * Message to user to inform him he is now connected to the ChatSystem
	 */
	void infoConnected();
	
	/**
	 * Message to user to inform him the connection failed
	 */
	void connectionAborted();
	
	/**
	 * Message to user to display the list of connected users
	 */
	void displayList();
	
	/**
	 * Message to user to open the window where he will be able to chat with other connected users
	 */
	void openConversationWindow(String selectedUser);
	
	/**
	 * Message to user to display in conversation the message he wrote
	 */
	void displayMessage(User u, String m);
	
	/**
	 * Message to user to display in conversation the message he received
	 */
	void displayRcvd(User u, String m);
	
	/**
	 * Message to user to display somedy wants to send a file
	 */
	void displayDemand(User user, String name);
	
	/**
	 * Message to user to inform him he has been disconnected
	 */
	void disconnect();
	
	/**
	 * Message to user to inform him the window has been closed
	 */
	void windowClosed();
}
